﻿using Newtonsoft.Json;
using System.Collections.Generic;

namespace Yz.Core.Extensions
{
    public static class ListExtension
    {
        public static List<T> ToList<T>(this string jsonStr)
        {
            return JsonConvert.DeserializeObject<List<T>>(jsonStr);
        }
    }
}
